/**
 *super关键字--继承--方法
 *
 */
public class animal {
    String name="动物";

    public void say() {

    }

    {
        System.out.println(name+"语言");
    }

    public animal() {
        System.out.println("父类---动物---构造器");
    }

    public animal(String name) {
        this.name = name;
    }
}
  class Dog extends animal{
      public Dog() {
          super(name,"狗");
          System.out.println("子类--狗--构造器");
      }

      public void sayTest(){
        System.out.println(super.name+"|||||");
        super.say();
    }
  }
  public class super关键字{
    public static void main(String[] args){
        Dog dog=new Dog();
        dog.sayTest();{
            System.out.println(super.name+"|||||");
        }
    }

  }